package cd.safe.school.activity;

import cd.safe.school.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.SlidingDrawer;
import android.widget.TextView;

public class SchoolInstroduce extends Activity {
	private TextView instroduce;
	public String a = "XXX学校简介。。。。。。。。。。。。。。。。。。。。。。。。";
	private Handler handler = new Handler() {

		@Override
		public void handleMessage(Message msg) {
			try {
				Thread.sleep(5000);
				Intent intent = new Intent(SchoolInstroduce.this,
						MainActivity.class);
				intent.putExtra("username",
						getIntent().getStringExtra("username"));
				intent.putExtra("password",
						getIntent().getStringExtra("password"));
				startActivity(intent);
				finish();
			} catch (InterruptedException e) {

				e.printStackTrace();
			}

		}

	};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.school_introduce);
		instroduce = (TextView) findViewById(R.id.instroduce);
		instroduce.setText(a);
		Message msg = new Message();

		handler.sendMessage(msg);

	}
}
